package com.demo.service.impl;

import com.demo.dao.GoodsPriceIndexMapper;
import com.demo.entity.GoodsPriceIndex;
import com.demo.service.IGoodsPriceIndexService;
import com.demo.vo.GoodsPriceIndexVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liushaokang on 2017/3/14.
 */

@Service
public class GoodsPriceIndexServiceImpl implements IGoodsPriceIndexService {

    @Autowired
    private GoodsPriceIndexMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GoodsPriceIndex record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(GoodsPriceIndex record) {
        return dao.insertSelective(record);
    }

    @Override
    public GoodsPriceIndex selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public List<GoodsPriceIndex> queryByPageAndGoodsId(GoodsPriceIndexVo gpiv) {
        return dao.queryByPageAndGoodsId(gpiv);
    }

    @Override
    public int updateByPrimaryKeySelective(GoodsPriceIndex record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GoodsPriceIndex record) {
        return dao.updateByPrimaryKey(record);
    }
}
